package com.rui.patterns.stategy;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : SalesMan
 * @createTime : [2022/2/23 17:30]
 * @description : [描述该类的功能]
 */

public class SalesMan {

    //聚合策略类对象
    private Strategy strategy;

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public SalesMan(Strategy strategy) {
        this.strategy = strategy;
    }

    //由促销员展示促销活动给用户
    public void salesManShow(){
        strategy.show();
    }
}
